<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        #img {
            display: none;
        }
        
        h1 {
            width: 100%;
            text-align: center;
        }
        
        * {
            padding: 0;
            margin: 0;
        }
        
        button {
            width: 120px;
            height: 60px;
            background-color: rgb(106, 106, 255);
            border: none;
            border-radius: 15px;
            color: #fff;
            margin-left: 20px;
        }
    </style>
</head>

<body>
    <div>
        <h1>hello,欢迎进入罗粤的娱乐世界</h1>
        <button id="btn">点击我有惊喜</button>
        <img id="img" src="./202112110920483789.gif" alt="">
    </div>

</body>
<script>
    var btn = document.querySelector("#btn");
    var img = document.querySelector("#img");
    btn.addEventListener('click', function() {
        // console.log(123);
        if (window.confirm('你准备好了吗？')) {
            // alert(0);
            img.style.display = "block";
        };
    });
</script>

</html>